package Demo3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * DAO Data Access Object
 * DAO 时项目分层名，是一类专门与
 */
@Component
public class UserDAO {
    //数据库的链接地址
    @Value("jdbc:mysql://localhost:3306/tedu")
    private  String url;
    //数据库用户名
    @Value("root")
    private  String username;
    //数据库密码
    @Value("root")
    private String password;


    public String  toString(){
        return "UserDAO [url=" + url + ", username=" + username + ", password=" + password + "]";
    }

}
